-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(slab): implement basic action operations #1
Conversation
0bf6a70
to
568ee0e
Compare
New HTTP routes in Slab must be shipped to production before to be able to have a green CI here. |
Regarding the huge number of lines in this PR, don't worry since the only files that matter are located in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks generally ok, I think the objective here is to get something to test, I saw some lints failing also some things seem to need to be done to get remove task IDs ?
568ee0e
to
ddf7c8e
Compare
maybe skip code QL if it requires paying additional stuff (looks like the workflow indicates that it is the case) |
50faee4
to
4e9eb4a
Compare
9d651d1
to
73812fc
Compare
8c66789
to
7064ffa
Compare
513f0e4
to
02d2162
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor things
} | ||
} | ||
|
||
async function removeTask(taskId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tasks are not auto removed by slab once done ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because one might want to know when a task is finished. Due to the asynchronous nature of such request, Slab cannot endorse the responsibility of removing a task as soon as it's done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, I guess I kind of see it, but this means people calling the API need to do the clean up which seems fragile, I'm guessing it's a bit of work to get that on the Slab side but later down the line could we maybe do a query on the task status and if Slab sees that the status it returns is "done" then it removes the task on behalf of the requester
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with a timeout where the task is removed eventually like after 10 minutes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want me to create an issue for this ? @soonum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agreed on your idea. That's a clever way to deal with the problem.
And yes, you can create an issue for this.
This consist in a simple "start" and "stop" mode for the action.
02d2162
to
fd3f51f
Compare
if (config.input.subnetId) { | ||
payload.subnet_id = config.input.subnetId | ||
} | ||
if (config.input.securityGroupIds) { | ||
payload.security_group_ids = config.input.securityGroupIds | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are those already optional in Slab ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes they are.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alright then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as they say :)
This consist in a simple "start" and "stop" mode for the action.